# Maintainer: Jonathan Albrieux <jonathan.albrieux@gmail.com>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-bq-picmt
pkgdesc="BQ Aquaris X5"
pkgver=1
pkgrel=4
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-bq-picmt mkbootimg qemu mesa-dri-swrast msm-fb-refresher"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Wifi(/Modem in progress)"
	depends="firmware-bq-picmt-wcnss firmware-bq-picmt-wcnss-nv wcnss-wlan
		 firmware-bq-picmt-modem msm-modem-downstream"
	mkdir "$subpkgdir"
}

sha512sums="c6da1cf28790a6fbb76da251b0c966d4a5d444ab41208a812c5f514a37bee9bf050d4f94be5e5c18c862d4a2f356cda7b89522c655e6bd287af96f1ab078e38a  deviceinfo"
